package com.nyist.springcloud;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yangxiaogen
 * @date 2021/1/21 14:21
 */
@Data  // get/set
@AllArgsConstructor  // 全参构造函数
@NoArgsConstructor  // 空参构造函数
public class ResultVO<T> {

    private String code;
    private String message;
    private T data;

    public ResultVO(String code, String message) {
        this(code,message,null);
    }

}
